package pattern.factory;

public class SimpleNotebookFactory {
    public static Notebook createNoteBook(String type){
        if(type.equals("dell")){
            return new DellNotebook();
        }else if(type.equals("lenovo")){
            return new LenovoNotebook();
        }else{
            return null;
        }
    }
}
